import request from "./request";

export function searchAllCollegeApi(params:any) {
    return request({
        url: "/judge/college",
        method: 'get',
        params
    })
}
export function searchAllResultApi(params:any) {
    return request({
        url: "/judge/athlete_event_result",
        method: 'get',
        params
    })
}
export function searchEventByNameApi(params:any) {
    return request({
        url: "/judge/college_event",
        method: 'get',
        params
    })
}
export function searchAthleteByNameApi(params:any) {
    return request({
        url: "/judge/athletes_by_name",
        method: 'get',
        params
    })
}

export function updateCollegeApi(data:any) {
    return request({
        url: "/judge/update_college",
        method: 'put',
        data
    })
}



export function updateResultApi(data:any) {
    return request({
        url: "/judge/update_athlete_score",
        method: 'put',
        data
    })
}
export function getCollegeInfoByIdApi(params:any) {
    return request({
        url: "/judge/college_info",
        method: 'get',
        params
    })
}
export function getResultInfoByIdApi(params:any) {
    return request({
        url: "/judge/result_by_id",
        method: 'get',
        params
    })
}
export function deleteCollegeApi(params:any) {
    return request({
        url: "/judge/delete_college",
        method: 'delete',
        params
    })
}


export function deleteEventApi(params:any) {
    return request({
        url: "/judge/delete_event",
        method: 'delete',
        params
    })
}
